﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace MyTask.Domain.Commands
{
   public class TaskInfoCommand
    {

        public int TaskId { get; set; }
        [Required(ErrorMessage = "Task name cannot be empty")]
        public string TaskName { get; set; }

        [Required(ErrorMessage = "Task start time cannot be empty")]
        public DateTime StartTime { get; set; }

        [Required(ErrorMessage = "Task end time cannot be empty")]
        public DateTime EndTime { get; set; }

        public bool IsComplete { get; set; }

        [Required(ErrorMessage = "User cannot be empty")]
        public int UserId { get; set; }

        public string TaskDescrible { get; set; }

        public string TaskResult { get; set; }
    }
}
